<?php
namespace core\tv\validate;

use core\Validate;

class PlayLogValidate extends Validate
{

    /**
     * 规则
     *
     * @var unknown
     */
    protected $rule = [
        'video_id' => 'require',
        'video_name' => 'require',
        'chapter' => 'require',
        'store_id' => 'require',
        'uuid' => 'require'
    ];

    /**
     * 提示
     *
     * @var unknown
     */
    protected $message = [
        'video_id.require' => '视频ID为空',
        'video_name.require' => '视频名称为空',
        'chapter.require' => '视频章节为空',
        'store_id.require' => '门店ID为空',
        'uuid.require' => 'UUID为空'
    ];

    /**
     * 场景
     *
     * @var unknown
     */
    protected $scene = [
        'add' => [
            'video_id',
            'video_name',
            'store_id'
        ]
    ];
}